package net.xdclass.mapper;

import net.xdclass.model.TrafficDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 浜屽綋瀹跺皬D
 * @since 2024-07-02
 */
public interface TrafficMapper extends BaseMapper<TrafficDO> {

    int addDayUsedTimes(@Param("currentTrafficId") Long currentTrafficId, @Param("accountNo") long accountNo, @Param("dayUsedTimes") int dayUsedTimes);

    int releaseUsedTimes(@Param("trafficId")Long trafficId, @Param("accountNo")long accountNo, @Param("useTimes") Integer useTimes,@Param("useDate") String useDate);
}
